//
//  LoginViewController.swift
//  TJJPT
//
//  Created by FENGYL on 2017/5/5.
//  Copyright © 2017年 FENGYL. All rights reserved.
//

import UIKit

class FirstViewController: UIViewController {

    @IBOutlet weak var registerButton: UIButton!
    @IBOutlet weak var loginButton: UIButton!
    @IBOutlet weak var experienceButton: UIButton!
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.setUpView()
        
    }
    
    override func viewWillAppear(_ animated: Bool) {
        
        self.navigationController?.setNavigationBarHidden(true, animated: true)
        
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        
        self.navigationController?.setNavigationBarHidden(false, animated: true)
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    // MARK: - 初始化View
    func setUpView(){
        
        
        //nav透明
//        self.navigationController?.navigationBar.setBackgroundImage(navigationImage, for: .default)
//        self.navigationController?.navigationBar.barStyle = .black
        
        //设置背景
        self.view.layer.contents = UIImage(named: "z_gps_signUp_d")?.cgImage
        //设置注册按钮
        self.registerButton.setTitle(NSLocalizedString(LOCALIZABLE_STRING_REGISTER, comment: ""), for: .normal)
        //设置登录按钮
        self.loginButton.setTitle(NSLocalizedString(LOCALIZABLE_STRING_LOGIN, comment: ""), for: .normal)
        //设置体验按钮
        self.experienceButton.setTitle(NSLocalizedString(LOCALIZABLE_STRING_EXPERIENCE, comment: ""), for: .normal)
        
        
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
